package com.zhaorui.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName GZ_MF_TZ
 */
@TableName(value ="GZ_MF_TZ")
@Data
public class GzMfTz implements Serializable {
    /**
     * 
     */
    @TableId
    private String tzNo;

    /**
     * 
     */
    private Date tzDd;

    /**
     * 
     */
    private String moNo;
    /**
     *
     */
    private Integer del;
    /**
     * 
     */
    private String mrpNo;

    /**
     * 
     */
    private String unit;

    /**
     * 
     */
    private BigDecimal qty;

    /**
     * 
     */
    private String zcNo;

    /**
     * 
     */
    private String rem;

    /**
     * 
     */
    private Date endDd;

    /**
     * 
     */
    private BigDecimal qtyFin;

    /**
     * 
     */
    private String dep;

    /**
     * 
     */
    private String soNo;

    /**
     * 
     */
    private String chkMan;

    /**
     * 
     */
    private Integer zcItm;

    /**
     * 
     */
    private Integer estItm;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        GzMfTz other = (GzMfTz) that;
        return (this.getTzNo() == null ? other.getTzNo() == null : this.getTzNo().equals(other.getTzNo()))
            && (this.getTzDd() == null ? other.getTzDd() == null : this.getTzDd().equals(other.getTzDd()))
            && (this.getMoNo() == null ? other.getMoNo() == null : this.getMoNo().equals(other.getMoNo()))
            && (this.getMrpNo() == null ? other.getMrpNo() == null : this.getMrpNo().equals(other.getMrpNo()))
            && (this.getUnit() == null ? other.getUnit() == null : this.getUnit().equals(other.getUnit()))
            && (this.getQty() == null ? other.getQty() == null : this.getQty().equals(other.getQty()))
            && (this.getZcNo() == null ? other.getZcNo() == null : this.getZcNo().equals(other.getZcNo()))
            && (this.getRem() == null ? other.getRem() == null : this.getRem().equals(other.getRem()))
            && (this.getEndDd() == null ? other.getEndDd() == null : this.getEndDd().equals(other.getEndDd()))
            && (this.getQtyFin() == null ? other.getQtyFin() == null : this.getQtyFin().equals(other.getQtyFin()))
            && (this.getDep() == null ? other.getDep() == null : this.getDep().equals(other.getDep()))
            && (this.getSoNo() == null ? other.getSoNo() == null : this.getSoNo().equals(other.getSoNo()))
            && (this.getChkMan() == null ? other.getChkMan() == null : this.getChkMan().equals(other.getChkMan()))
            && (this.getZcItm() == null ? other.getZcItm() == null : this.getZcItm().equals(other.getZcItm()))
            && (this.getEstItm() == null ? other.getEstItm() == null : this.getEstItm().equals(other.getEstItm()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getTzNo() == null) ? 0 : getTzNo().hashCode());
        result = prime * result + ((getTzDd() == null) ? 0 : getTzDd().hashCode());
        result = prime * result + ((getMoNo() == null) ? 0 : getMoNo().hashCode());
        result = prime * result + ((getMrpNo() == null) ? 0 : getMrpNo().hashCode());
        result = prime * result + ((getUnit() == null) ? 0 : getUnit().hashCode());
        result = prime * result + ((getQty() == null) ? 0 : getQty().hashCode());
        result = prime * result + ((getZcNo() == null) ? 0 : getZcNo().hashCode());
        result = prime * result + ((getRem() == null) ? 0 : getRem().hashCode());
        result = prime * result + ((getEndDd() == null) ? 0 : getEndDd().hashCode());
        result = prime * result + ((getQtyFin() == null) ? 0 : getQtyFin().hashCode());
        result = prime * result + ((getDep() == null) ? 0 : getDep().hashCode());
        result = prime * result + ((getSoNo() == null) ? 0 : getSoNo().hashCode());
        result = prime * result + ((getChkMan() == null) ? 0 : getChkMan().hashCode());
        result = prime * result + ((getZcItm() == null) ? 0 : getZcItm().hashCode());
        result = prime * result + ((getEstItm() == null) ? 0 : getEstItm().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tzNo=").append(tzNo);
        sb.append(", tzDd=").append(tzDd);
        sb.append(", moNo=").append(moNo);
        sb.append(", mrpNo=").append(mrpNo);
        sb.append(", unit=").append(unit);
        sb.append(", qty=").append(qty);
        sb.append(", zcNo=").append(zcNo);
        sb.append(", rem=").append(rem);
        sb.append(", endDd=").append(endDd);
        sb.append(", qtyFin=").append(qtyFin);
        sb.append(", dep=").append(dep);
        sb.append(", soNo=").append(soNo);
        sb.append(", chkMan=").append(chkMan);
        sb.append(", zcItm=").append(zcItm);
        sb.append(", estItm=").append(estItm);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}